/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "SimSun", "宋体", serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: #1a5fb4;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 15px -15px;
}

.col {
  padding: 0 15px;
}

.col-50 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-70 {
  flex: 0 0 70%;
  max-width: 70%;
}

.col-30 {
  flex: 0 0 30%;
  max-width: 30%;
}

/* Header styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  padding: 10px;
}

.logo img {
  max-height: 50px;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin: 0 15px;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

/* Footer styles */
footer {
  background-color: #e9ecef;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  gap: 15px;
}
.footer-left li{
  display: inline-block;
}
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Article styles */
.article-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.article-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.article-content {
  margin-bottom: 30px;
}

.article-content h2, .article-content h3, .article-content h4, .article-content h5 {
  margin: 15px 0;
}

.article-content ul, .article-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.article-content li {
  margin-bottom: 5px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.article-content table, .article-content th, .article-content td {
  border: 1px solid #ddd;
}

.article-content th, .article-content td {
  padding: 8px;
  text-align: left;
}

.article-content tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* List styles */
.list-item {
  margin-bottom: 15px;
}

.list-item .thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
}

.list-item .thumbnail img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-item .title {
  font-weight: bold;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-divider {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.pagination ul {
  list-style: none;
  display: flex;
  gap: 5px;
}

.pagination li {
  display: inline-block;
}

.pagination a {
  display: block;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.pagination a:hover {
  background-color: #f5f5f5;
}

/* Sidebar */
.sidebar {
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.sidebar-title .badge {
  background-color: #ff6b6b;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 5px;
}

/* Breadcrumb */
.breadcrumb {
  margin: 15px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .col-50, .col-70, .col-30 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sidebar {
    display: none;
  }

  .header-container {
    flex-direction: column;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
  }

  .footer-container {
    flex-direction: column;
    gap: 15px;
  }

  .footer-left {
    flex-direction: column;
    gap: 10px;
  }
}